﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using LunchCommand.Models.Logging;

namespace LunchCommand.Data
{
    public class LogRepository
    {
        private LunchCommandContext Context { get; set; }

        public LogRepository(LunchCommandContext context)
        {
            this.Context = context;
        }

        public void SaveLogEntry(LogEntry entry)
        {
            this.Context.LogEntries.Add(entry);
            this.Context.SaveChanges();
        }
    }
}